/*
 * XML Type:  NonSequenceReplyType
 * Namespace: http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd
 * Java type: cgl.narada.wsinfra.schemas.wsr.NonSequenceReplyType
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.wsinfra.schemas.wsr.impl;
/**
 * An XML NonSequenceReplyType(@http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd).
 *
 * This is a complex type.
 */
public class NonSequenceReplyTypeImpl extends cgl.narada.wsinfra.schemas.wsr.impl.ExtensibleTypeImpl implements cgl.narada.wsinfra.schemas.wsr.NonSequenceReplyType
{
    
    public NonSequenceReplyTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GROUPID$0 = 
        new javax.xml.namespace.QName("", "groupId");
    private static final javax.xml.namespace.QName FAULT$2 = 
        new javax.xml.namespace.QName("", "fault");
    
    
    /**
     * Gets the "groupId" attribute
     */
    public java.lang.String getGroupId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GROUPID$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "groupId" attribute
     */
    public cgl.narada.wsinfra.schemas.wsr.MIDType xgetGroupId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.MIDType target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.MIDType)get_store().find_attribute_user(GROUPID$0);
            return target;
        }
    }
    
    /**
     * Sets the "groupId" attribute
     */
    public void setGroupId(java.lang.String groupId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GROUPID$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GROUPID$0);
            }
            target.setStringValue(groupId);
        }
    }
    
    /**
     * Sets (as xml) the "groupId" attribute
     */
    public void xsetGroupId(cgl.narada.wsinfra.schemas.wsr.MIDType groupId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.MIDType target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.MIDType)get_store().find_attribute_user(GROUPID$0);
            if (target == null)
            {
                target = (cgl.narada.wsinfra.schemas.wsr.MIDType)get_store().add_attribute_user(GROUPID$0);
            }
            target.set(groupId);
        }
    }
    
    /**
     * Gets the "fault" attribute
     */
    public javax.xml.namespace.QName getFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FAULT$2);
            if (target == null)
            {
                return null;
            }
            return target.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "fault" attribute
     */
    public cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum xgetFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum)get_store().find_attribute_user(FAULT$2);
            return target;
        }
    }
    
    /**
     * True if has "fault" attribute
     */
    public boolean isSetFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(FAULT$2) != null;
        }
    }
    
    /**
     * Sets the "fault" attribute
     */
    public void setFault(javax.xml.namespace.QName fault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FAULT$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FAULT$2);
            }
            target.setQNameValue(fault);
        }
    }
    
    /**
     * Sets (as xml) the "fault" attribute
     */
    public void xsetFault(cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum fault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum)get_store().find_attribute_user(FAULT$2);
            if (target == null)
            {
                target = (cgl.narada.wsinfra.schemas.wsr.FaultCodeEnum)get_store().add_attribute_user(FAULT$2);
            }
            target.set(fault);
        }
    }
    
    /**
     * Unsets the "fault" attribute
     */
    public void unsetFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(FAULT$2);
        }
    }
}
